/**
 * 部门树类型
 */
export interface DepTreeType {
  id: number
  parentId: number
  name: string
  children: DepTreeType[]
}

/**
 *  用户数据回填类型
 */

export interface UserDetailType {
  id: string
  username: string
  avatar: string
  nickname: string
  state: number
  phone: string
  depId: number
  depName: string
  roleList: any[]
  department?: any
  roIds: number[]
}
/**
 * 用户更新类型
 */
export interface UpdateUserInfoType {
  id: string
  avatar: string
  nickname: string
  phone: string
  state: number
  depIds: number[] | number
  rids: number[]
}

/**
 * 添加用户类型
 */
export interface AddUserInfoType {
  username: string
  password: string
  phone: string
  avatar?: string
  nickname: string
  depIds: number[]
  rids: number[]
}

/**
 * 角色ID类型
 */
export interface RoleSelectType {
  roleId: number
  roleName: string
}
/**
 * 用户列表类型
 */

export interface UserListType {
  id: string
  username: string
  avatar: string
  nickname: string
  state: number
  phone: string
  depId: number
  depName?: any
  roleList: RoleList[]
  department: department
}

interface department {
  id: number
  name: string
}

interface RoleList {
  roleId: number
  roleName: string
}
